package com.kauto.gps.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "gps.files")
public class GpsFilesProperties {
    public static String dir;
    public static String bakDir;
    public static int maxCacheSize;
    public static int recordMax;
    public static int createInterval;
    public static int bakKeepTime;
    public static int bakClearInterval;

    public void setDir(String dir) {
        GpsFilesProperties.dir = dir;
    }

    public void setBakDir(String bakDir) {
        GpsFilesProperties.bakDir = bakDir;
    }

    public void setMaxCacheSize(int maxCacheSize) {
        GpsFilesProperties.maxCacheSize = maxCacheSize;
    }

    public void setRecordMax(int recordMax) {
        GpsFilesProperties.recordMax = recordMax;
    }

    public void setCreateInterval(int createInterval) {
        GpsFilesProperties.createInterval = createInterval;
    }

    public void setBakKeepTime(int bakKeepTime) {
        GpsFilesProperties.bakKeepTime = bakKeepTime;
    }

    public void setBakClearInterval(int bakClearInterval) {
        GpsFilesProperties.bakClearInterval = bakClearInterval;
    }
}
